package com.leadingsoft.pwxk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

import com.leadingsoft.pwxk.dto.ApesDto;
import com.leadingsoft.pwxk.dto.SearchDto;
import com.leadingsoft.pwxk.service.APEStatisticalService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 
 * @author ysh
 * @desc 大气污染物排放量统计
 */
@Api(description = "大气污染物排放量统计")
@RestController
@RequestMapping("api/aPEStatistical")
public class APEStatisticalController {

	@Autowired
	APEStatisticalService apeStatisticalService;

	@ApiOperation("大气污染物排放量统计信息")
	@GetMapping
	@ResponseStatus(code = HttpStatus.OK)
	public ApesDto getStatistical(SearchDto s) {
		return apeStatisticalService.getStatistical(s);
	}
}
